package com.ityy.ruiji;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.annotation.MapperScans;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

@Slf4j
@SpringBootApplication
@MapperScan(basePackages = "com.ityy.ruiji.dao")
@ServletComponentScan(basePackages = "com.ityy.ruiji.filter")//如果使用servlet体系的知识点，
           // 在springboot里面需要扫描servlet包
public class RuiJiApplication {
    public static void main(String[] args) {
        SpringApplication.run(RuiJiApplication.class, args);
        log.info("项目启动成功...");
    }
}
